<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('news/delsnews', $attributes);
?>

<table class="admindata">
   <thead>
      <tr>
         <th colspan="4"> <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có
            <?=$num?>
            bài viết
            <?=$pagination?>
         </th>
      </tr>
      <tr>
         <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
         <th>Tiêu đề</th>
         <th>Alias</th>
         <th class="publish">Chức năng</th>
      </tr>
   </thead>
   <?
        $k=1;
        $i=1;
        foreach($list as $rs):
        ?>
   <tr class="row<?=$k?>">
      <td><input type="checkbox" name="ar_id[]" value="<?=$rs->news_id?>"></td>
      <td><?=$rs->title_vn?></td>
      <td><?=$rs->alias?></td>
      <td align="center"><?=icon_edit('news/updatenews/'.$rs->news_id)?>
         <span id="publish<?=$rs->news_id?>">
         <?=icon_active("'news'","'news_id'",$rs->news_id,$rs->active)?>
         </span>
         <?=icon_del('news/del/'.$rs->news_id.'/'.(int)$this->uri->segment(4))?></td>
   </tr>
   <?
        $k=1-$k;
        $i++;
        endforeach;?>
   <tfoot>
   <td colspan="4"><input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
         Hiện có
         <?=$num?>
         bài viết
         <?=$pagination?></td>
         </tfoot>
</table>
<?=form_close()?>
